/* ========================================
   基础布局样式
======================================== */
:deep(.t-card__body) {
  padding-top: var(--td-comp-paddingTB-l) !important;
}
.page-container {   
  background: linear-gradient(135deg, #f8fafc, #f1f5f9 50%, #e2e8f0);
  min-height: 100vh;
}

.shop-container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.shop-main-content {
  margin: 1rem 0;
}

/* ========================================
   底部固定订单栏
======================================== */
.order-bar {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 62px;
  background-color: var(--td-font-white-1);
  box-shadow: 0 -1px 0 0 hsla(0, 0%, 71%, 0.18);
  left: 0;
  font-size: 14px;
  z-index: 1000;
}

.order-bar-content {
  margin: 0 auto;
  padding: 0.8rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quantity-selector {
  margin-left: 1px;
}

.price-info {
  font-size: 14px;
}

.price-total {
  font-size: 18px;
  color: var(--td-brand-color);
  padding-left: 10px;
  font-weight: 600;
}

.price-original {
  padding-left: 5px;
  font-size: 12px;
  text-decoration: line-through;
  color: var(--td-gray-color-6);
}

/* ========================================
   页脚样式
======================================== */
.shop-footer {
  margin-bottom: 85px;
}

.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: var(--td-gray-color-5);
}

/* ========================================
   响应式布局
======================================== */
@media (min-width: 576px) {
  .shop-container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .shop-container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .shop-container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .shop-container {
    max-width: 1140px;
  }
}

/* ========================================
   通用区块样式
======================================== */
.section-title {
  padding: 0 0 0.4rem 0;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.section-icon {
  display: inline-block;
  vertical-align: bottom;
  margin-right: 5px;
}

.section-title-text {
  margin-bottom: 2px;
}

.section-content {
  padding: 1rem 0.4rem;
}
/* ========================================
   商品分类区域
======================================== */

.category-item {
  display: inline-block;
}

.category-card {
  overflow: hidden;
  vertical-align: middle;
  min-width: 153px;
  background: #f8f8f8;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  margin-right: 14px;
  height: 67px;
  padding: 0 20px 0 19px;
  cursor: pointer;
  user-select: none;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.3s ease;
}

.category-item--active .category-card {
  background: linear-gradient(-45deg, #3369ff, #3798f7);
  box-shadow: 0 7px 10px 0 rgba(54, 144, 248, 0.23);
  border: 1px solid #3580fb;
  color: #fff;
}

.category-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}

.category-count {
  font-size: 12px;
  color: #666;
}

.category-item--active .category-count {
  color: #e1e1e1;
}

.category-item .selection-indicator {
  display: none;
}

.category-item--active .selection-indicator {
  position: absolute;
  right: -6px;
  bottom: -19px;
  display: block;
}

/* ========================================
   商品选择区域
======================================== */
.goods-section {
  margin-top: 1rem;
}

.goods-item .goods-card {
  min-width: 145px;
  transition: all 0.3s ease;
}

.goods-item--active .goods-card {
  border: 2px solid #3369ff;
}

.goods-item .selection-indicator {
  display: none;
}

.goods-item--active .selection-indicator {
  position: absolute;
  right: -2px;
  bottom: -1px;
  border-radius: 0 0 10px 0;
  display: block;
}

/* ========================================
   商品卡片样式
======================================== */
.goods-card {
  position: relative;
  display: block;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #fff;
  transition: all 0.3s ease;
  border: 2px solid #f1f4fb;
  padding: 0.8rem;
  margin: 0.2rem;
}

.goods-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.goods-info {
  flex: 1;
}

.goods-wrapper {
  padding: 0 0.4rem;
}

.goods-detail {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 4px;
}

.goods-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.goods-price {
  font-weight: 600;
  font-size: 12px;
  color: #3369ff;
  line-height: 1.5;
}

.goods-stock {
  color: #0db26a;
  font-size: 12px;
}

@media (min-width: 768px) {
  .goods-card .goods-wrapper {
    padding: 0 0.4rem;
  }
}

/* ========================================
   支付方式选择区域
======================================== */
.payment-section {
  margin-top: 1rem;
}

.payment-methods {
  margin: 0 auto;
}

.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.payment-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  line-height: 43px;
  width: 130px;
  text-align: center;
  background: #f8f8f8;
  border: 2px solid #f6f6f6;
  border-radius: 4px;
  position: relative;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.payment-icon {
  width: 21px;
  height: auto;
  margin-right: 8px;
}

.payment-name {
  font-weight: 700;
  font-size: 13px;
  color: #545454;
}

.payment-option .selection-indicator {
  position: absolute;
  right: -2px;
  bottom: -1px;
  border-radius: 0 0 4px 0;
  display: none;
}

.payment-option--selected {
  border-color: #3369ff;
}

.payment-option--selected .payment-name {
  color: #3369ff;
}

.payment-option--selected .selection-indicator {
  display: block;
}

/* ========================================
   其他区域样式
======================================== */
.description-section,
.purchase-form-section,
.promotion-section {
  margin: 1rem 0;
}

.promotion-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.promotion-item:last-child {
  border-bottom: none;
}
